import $axios from './index.js'

// 基本信息
function basicInfo(data) {
  const url = '/websiteSetting/read'
  return $axios.get(url, data)
}
// 基本信息编辑
function basicUpdate(data) {
  const url = '/websiteSetting/update'
  return $axios.post(url, data)
}
// 语言查看
function langInfo(data) {
  const url = '/websiteLang/index'
  return $axios.get(url, data)
}
// 语言添加
function langUpdate(data) {
  const url = '/websiteLang/save'
  return $axios.post(url, data)
}
// 系统支持语言
function systemLang(data) {
  const url = '/websiteLang/system'
  return $axios.get(url, data)
}
// 服务器详情
function serverInfo(data) {
  const url = '/websiteServer/read'
  return $axios.get(url, data)
}
// 服务器编辑
function serverUpdate(data) {
  const url = '/websiteServer/update'
  return $axios.post(url, data)
}
export default {
  basicInfo,
  basicUpdate,
  langInfo,
  langUpdate,
  systemLang,
  serverInfo,
  serverUpdate
}
